﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.BaseInfo.OilCosts
{
    public interface IOilCostRepository
    {
        /// <summary>
        /// 显示油费管理
        /// </summary>
        /// <param name="cardname"></param>
        /// <param name="name"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<OilCostDto>> GetShowOilCost(string cardname, string name, int pageindex, int pagesize);
        /// <summary>
        /// 删除油费管理
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelOilCost(int id);
        /// <summary>
        /// 批量删除油费管理
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsOilCost(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="oilCostDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateOilCost(OilCostDto oilCostDto);
        /// <summary>
        /// 添加油费管理
        /// </summary>
        /// <param name="oilCostDto"></param>
        /// <returns></returns>
        Task<int> PostAddOilCost(OilCostDto oilCostDto);
        /// <summary>
        /// 绑定
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<DictionaryDto>> GetBind();
    }
}
